{% extends "base.html" %}
{% block title %}策略管理{% endblock %}

{% block content %}
<div class="row">
    <div class="col-md-12">
        <h2 class="mb-4">策略管理</h2>
        
        <div class="card mb-4">
            <div class="card-header">
                策略列表
            </div>
            <div class="card-body">
                <table class="table table-bordered">
                    <thead>
                        <tr>
                            <th>策略名称</th>
                            <th>参数</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for strategy in strategies %}
                        <tr>
                            <td>{{ strategy.name }}</td>
                            <td>{{ strategy.params|tojson }}</td>
                            <td>
                                <button class="btn btn-sm btn-primary">编辑</button>
                                <button class="btn btn-sm btn-danger">删除</button>
                            </td>
                        </tr>
                        {% endfor %}
                    </tbody>
                </table>
            </div>
        </div>
        
        <div class="card">
            <div class="card-header">
                添加新策略
            </div>
            <div class="card-body">
                <form>
                    <div class="mb-3">
                        <label for="strategyName" class="form-label">策略名称</label>
                        <input type="text" class="form-control" id="strategyName" required>
                    </div>
                    <button type="submit" class="btn btn-primary">提交</button>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}
